package com.shangcheng.mapper;

import com.shangcheng.entity.TOrderDetails;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author leng
 * @since 2025-06-21
 */
@Mapper
public interface TOrderDetailsMapper extends BaseMapper<TOrderDetails> {
    @Delete("DELETE FROM t_order_details WHERE order_id = #{orderId}")
    int deleteByOrderId(Integer orderId);
}
